[?php

require_once(dirname(__FILE__).'/../lib/Base<?php echo ucfirst($this->moduleName) ?>GeneratorConfiguration.class.php');
require_once(dirname(__FILE__).'/../lib/Base<?php echo ucfirst($this->moduleName) ?>GeneratorHelper.class.php');

/**
 * <?php echo $this->getModuleName() ?> actions.
 *
 * @package    sistema_estadisticas
 * @subpackage <?php echo $this->getModuleName()."\n" ?>
 */
abstract class <?php echo $this->getGeneratedModuleName() ?>Actions extends sgeActions
{
	public function preExecute()
	{
		$this->configuration = new <?php echo $this->getModuleName() ?>GeneratorConfiguration();

		if (!$this->getUser()->hasCredential($this->configuration->getCredentials($this->getActionName())))
		{
			$this->forward(sfConfig::get('sf_secure_module'), sfConfig::get('sf_secure_action'));
		}

		$this->dispatcher->notify(new sfEvent($this, 'admin.pre_execute', array('configuration' => $this->configuration)));

		$this->helper = new <?php echo $this->getModuleName() ?>GeneratorHelper();

		parent::preExecute();
	}

<?php include dirname(__FILE__).'/../../parts/indexAction.php' ?>

<?php if ($this->configuration->hasFilterForm()): ?>
<?php include dirname(__FILE__).'/../../parts/filterAction.php' ?>
<?php endif; ?>

<?php include dirname(__FILE__).'/../../parts/showAction.php' ?>

<?php include dirname(__FILE__).'/../../parts/newAction.php' ?>

<?php include dirname(__FILE__).'/../../parts/createAction.php' ?>

<?php include dirname(__FILE__).'/../../parts/editAction.php' ?>

<?php include dirname(__FILE__).'/../../parts/updateAction.php' ?>

<?php include dirname(__FILE__).'/../../parts/deleteAction.php' ?>

<?php if ($this->configuration->getValue('list.batch_actions')): ?>
<?php include dirname(__FILE__).'/../../parts/batchAction.php' ?>
<?php endif; ?>

<?php include dirname(__FILE__).'/../../parts/processFormAction.php' ?>

<?php if ($this->configuration->hasFilterForm()): ?>
<?php include dirname(__FILE__).'/../../parts/filtersAction.php' ?>
<?php endif; ?>

<?php include dirname(__FILE__).'/../../parts/paginationAction.php' ?>

<?php include dirname(__FILE__).'/../../parts/sortingAction.php' ?>

<?php include dirname(__FILE__).'/../../parts/addOnAction.php' ?>

<?php include dirname(__FILE__).'/../../parts/historicAction.php' ?>

<?php include dirname(__FILE__).'/../../parts/batchVersionAction.php' ?>

<?php include dirname(__FILE__).'/../../parts/deleteVersionAction.php' ?>

<?php include dirname(__FILE__).'/../../parts/compareAction.php' ?>

}
